package message.factory;

import message.service.MessageService;
public class MessageFactory {
	private static MessageFactory instance;
	private MessageService Message;
	
	private MessageFactory(){
		Message=new MessageService();
	}

	public static synchronized MessageFactory getInstance() {

		if (instance == null) {
			instance = new MessageFactory();
		}
		return instance;
	}

	public MessageService creatMessageService() {
		return Message;
	}
}